﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.Entity;
using System.Reflection;
using System.Data.Entity.ModelConfiguration;

namespace Zoo.Cat.WcfImageService.DataHelper
{
    public class SqlServerContext : DbContext
    {
        public SqlServerContext()
            : base("DatabaseConnectionString")
        {

        }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Configurations.Add(new PictureMap());

            base.OnModelCreating(modelBuilder);
        }
    }
}